<?php
$module_type = $sf_context->getModuleName();
$module = $sf_context->getRouting()->getCurrentRouteName();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=true"></script>
    <!-- Mobile Specific Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- Use new way for google web fonts
    http://www.smashingmagazine.com/2012/07/11/avoiding-faux-weights-styles-google-web-fonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' /> <!-- Headings -->
    <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' /> <!-- Text -->
    <!--[if lt IE 9]>
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
    <link href="http://fonts.googleapis.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
    <![endif]-->
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--[if lt IE 9]>
        <link type="text/css" href="css/ie.css" rel="stylesheet" />
    <![endif]-->
</head>
<body>
  <?php
    if ($module_type == 'sfGuardAuth') {
      echo $sf_content;
    }
    else {
    ?>
      <script type="text/javascript">
        //adding load class to body and hide page
        document.documentElement.className += 'loadstate';

        function sign_out()
        {
          window.location = "<?php echo url_for('@sf_guard_signout') ?>";
        }
      </script>

    <!-- loading animation -->
    <div id="qLoverlay"></div>
    <div id="qLbar"></div>

    <div id="header">
        <div class="navbar">
            <div class="navbar-inner">
              <div class="container-fluid">
                <a class="brand" href="<? echo url_for('default')?>"><? echo sfConfig::get('app_app_name') ?> <span class="slogan">Chương trình Quản lý Nhân Sự</span></a>
                <div class="nav-no-collapse">
                    <ul class="nav">
                        <li class="active"><a href="<? echo url_for('default')?>"><span class="icon16 icomoon-icon-screen"></span> Trang chủ</a></li>
                    </ul>

                    <ul class="nav pull-right usernav">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle avatar" data-toggle="dropdown">
                                <span class="txt"><? echo $sf_user->getGuardUser()->first_name." ".$sf_user->getGuardUser()->last_name; ?></span>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="menu">
                                    <ul>
                                        <li>
                                            <a href="<?php echo url_for('sf_guard_user') ?>"><span class="icon16 icomoon-icon-user-3"></span>Edit profile</a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="icon16 icomoon-icon-comments-2"></span>Approve comments</a>
                                        </li>
                                        <li>
                                            <a href="#"><span class="icon16 entypo-icon-contact"></span>Add user</a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li><a href="#" onclick="sign_out()" ><span class="icon16 icomoon-icon-exit"></span> Logout</a></li>
                    </ul>
                </div><!-- /.nav-collapse -->
              </div>
            </div><!-- /navbar-inner -->
          </div><!-- /navbar -->

    </div><!-- End #header -->

    <div id="wrapper">

        <!--Responsive navigation button-->
        <div class="resBtn">
            <a href="#"><span class="icon16 minia-icon-list-3"></span></a>
        </div>

        <!--Sidebar collapse button-->
        <div class="collapseBtn">
             <a href="#" class="tipR" title="Hide sidebar"><span class="icon12 minia-icon-layout"></span></a>
        </div>

        <!--Sidebar background-->
        <div id="sidebarbg"></div>
        <!--Sidebar content-->
        <div id="sidebar">

            <div class="shortcuts" style="height:41px;"></div><!-- End search -->
            <div class="sidenav">
                <div class="sidebar-widget" style="margin: -1px 0 0 0;">
                    <h5 class="title" style="margin-bottom:0">Danh mục</h5>
                </div><!-- End .sidenav-widget -->
                <div class="mainnav">
                    <ul>
                        <li><a href="#"><span class="icon16 brocco-icon-user"></span>Hồ sơ cá nhân</a>
                            <ul class="sub" style="display: block;">
                                <li><a href="<?php echo url_for('@staff_index'); ?>"><span class="icon16 brocco-icon-list"></span>Danh sách</a></li>
                                <li><a href="<?php echo url_for('@staff_create'); ?>"><span class="icon16 icomoon-icon-new"></span>Tạo mới hồ sơ</a></li>
                            </ul>
                        </li>
                        <li><a href="#"><span class="icon16 brocco-icon-pencil"></span>Trình độ</a>
                            <ul class="sub" style="display: block;">
                                <li><a href="<?php echo url_for('@education_background_index'); ?>"><span class="icon16 entypo-icon-book"></span>Học vấn</a>
                                <li><a href="<?php echo url_for('@politic_background_index'); ?>"><span class="icon16 brocco-icon-star"></span>Chính trị</a></li>
                                <li><a href="<?php echo url_for('@language_background_index'); ?>"><span class="icon16 entypo-icon-suitcase"></span>Ngoại ngữ</a></li>
                                <li><a href="<?php echo url_for('@education_create'); ?>"><span class="icon16 icomoon-icon-new"></span>Tạo mới</a></li>
                            </ul>
                        </li>
                        <li><a href="#"><span class="icon16 brocco-icon-list"></span>Danh mục</a>
                            <ul class="sub" style="display: block;">
                                <li><a href="<?php echo url_for('@contract_type_index'); ?>"><span class="icon16 silk-icon-notes-2"></span>Loại hợp đồng</a></li>
                                <li><a href="<?php echo url_for('@minority_index'); ?>"><span class="icon16 brocco-icon-grid"></span>Dân tộc</a></li>
                                <li><a href="<?php echo url_for('@religion_index'); ?>"><span class="icon16 entypo-icon-heart"></span>Tôn giáo</a></li>
                            </ul>
                        </li>
                        <li><a href="<?php echo url_for('@gov_organization_index'); ?>"><span class="icon16 brocco-icon-atom"></span>Tổ chức phòng ban</a></li>
                        <li><a href="<?php echo url_for('@pub_organization_index'); ?>"><span class="icon16 brocco-icon-home"></span>Tổ chức đoàn thể</a></li>
                        <li><a href="<?php echo url_for('@report_index'); ?>"><span class="icon16 icomoon-icon-file-excel"></span>Báo cáo</a></li>
                    </ul>
                </div>
            </div><!-- End sidenav -->
        </div><!-- End #sidebar -->

        <!--Body content-->
        <div id="content" class="clearfix">
            <div class="contentwrapper"><!--Content wrapper-->

                <div class="heading">

                    <h3><?php //echo $moduleName; ?></h3>

                    <? /*<ul class="breadcrumb">
                      <li>
                            <a href="<?php echo url_for("default") ?>" class="tip" title="back to dashboard">
                                <span class="icon16 icomoon-icon-screen"></span>
                            </a>
                            <span class="divider">
                                <span class="icon16 icomoon-icon-arrow-right"></span>
                            </span>
                        </li>
                      */ ?>
                    </ul>
                </div><!-- End .heading-->
        <?php echo $sf_content; ?>
            </div><!-- End contentwrapper -->
        </div><!-- End #content -->

    </div><!-- End #wrapper -->


  <?php
  }
  ?>


</body>
</html>
